package com.zcx.qshop.conn;

import org.json.JSONObject;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

@HttpInlet(Conn.INLER_JSON_COLLECTADD)
public class JsonCollectaddAsyGet extends QSAsyGet {
	
	public String uid, pid;

	public JsonCollectaddAsyGet(String uid, String pid, AsyCallBack asyCallBack) {

		super(asyCallBack);
		
		this.uid = uid;
		
		this.pid = pid;
		
 	} 
	
	@Override
	public Object parser(JSONObject object) { 
		
		if(object.optString("message").equals("1")){

			TOAST = "收藏成功";
			
			return "";
			
		}

		TOAST = "收藏失败";
		
		return null;
		
	}

}
